package com.wx.javacode.poly_.polyparameter_;

/**
 * ClassName:Worker
 * Package :com.wx.javacode.poly_.polyparameter_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/21 - 20:36
 */
public class Worker extends Employee{
    public Worker(String name, double salary) {
        super(name, salary);
    }

    @Override
    public double getAnnual() {//因为普通员工没有其他工资，则直接调用父类
         return super.getAnnual();
    }
    public void work(){
        System.out.println("普通员工"+getName()+"is working");
    }
}
